<!-- /* Description for file.
 *简历关键字定制编辑页面
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0629
 * @lastmodified  张海杰2011年0630
 */-->
<!-- 当前位置-->
<?php
echo $html->css ( 'tab' );
echo $html->css ( 'jquery-validate/css/screen' );
?>

<script type="text/javascript">
$(document).ready(function(){
	 $.validator.setDefaults({       
		 submitHandler: function(form) {    
		  form.submit();  
		}       
	});  
			// validate signup form on keyup and submit
			$("#KeywordeducationEditForm").validate({
				rules: {
				 "data[Keywordeducation][name]": {
						required: true,string: true,stringMinLength:2,stringMaxLength:50
					}
				},
				messages: {
				},
				//设置验证触发事件 
				focusInvalid: false, 
				onkeyup: false, 
				//设置错误信息提示DOM  
				errorPlacement: function(error, element) { 
				error.appendTo( element.parent()); 
				}
			});
});
</script>
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Resumesetting');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', __('Edit Keywordeducation',true));//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<?php 
	$languageNameOptions = array();	
	foreach ($languages as $language){
		$languageNameOptions[$language['Language']['id']] = $language['Language']['name'];
	}
	
	$advanceddegreerankNameOptions = array();	
	foreach ($advanceddegreeranks as $advanceddegreerank){
		$advanceddegreerankNameOptions[$advanceddegreerank['Advanceddegreerank']['id']] = $advanceddegreerank['Advanceddegreerank']['name'];
	}
?>
<?php echo $form->create('Keywordeducation');?>
<fieldset>
 		<legend><?php __('Edit Keywordeducation');?></legend>
 <table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
	<tr>
	<td>
	<?php
		echo $form->input('id');
		echo $form->hidden('creater');
		echo $form->hidden('updater');?>
	</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('Advanceddegreeranks keyword');//学历关键字名称?>:</td>
		<td colspan="4">
		<?php echo $form->input('name',array('class' => 'TextBoxL txtOut','label'=>false));?>
		</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('Advanceddegreeranks rank');?>:</td>
		<td >
		<?php 
				echo $form->input('advanceddegreerank_id',array('options'=>$advanceddegreerankNameOptions,'default'=>'advanceddegreeranks_id',
		'label'=>false,'div'=>false,'class'=>'TextBoxE1'));//选择级别?>
		</td>
		<td width="50"></td>
		<td width="100"><?php __('Advanceddegreeranks lang');?>:</td>
		<td>
		<?php echo $form->input('language_id',array('options'=>$languageNameOptions,'default'=>'language_id',
		'label'=>false,'div'=>false,'class'=>'TextBoxE1'));//选择语言?>
		</td>
	</tr>
</table>
	</fieldset>
	<?php echo $form->button('返回',array('type'=>'button','class'=>'backsubmit','onclick'=>'history.back(-1)'));?>  <!-- 返回上一级-->
	<?php echo $form->button('确定',array('type'=>'submit','class'=>'addsubmit'));?> 	
	<?php echo $form->button('重置',array('type'=>'reset','class'=>'resetsubmit'));?>  <!-- __('reset', true)取消-->
<?php echo $form->end();?>
</div>


